The things people say in conversation are usually not what you would encounter learning English. So, what I would "naturally" say in this context, particularly in speaking to someone, would be something along the lines of:
"I spent tons and tons of time studying for the test." (a ton is a weight, a ton is a very heavy weight.)
or,
"I spent loads of hours studying for the test." (a load is an amount, a load is a large amount.)