Improve grammaticallity of the given sentence.
I couldn't have enjoyed learning English because I have studied for a test.
I couldn't have enjoyed learning English because I had been studying for a test.