It was more important to have good study habits than to make a good grade on a test.
You liked to make a good grade, you enjoyed the test, you liked the challenge.