对下面的句子进行重写，使其更加简洁明了。


The fact that I had failed the test made me very unhappy and disappointed. I had studied very hard for it, but I still didn't pass.
Failing the test despite studying hard made me very unhappy and disappointed.