Every time I'm feeling confident about the correct usage of に, を, and で, I get thrown for a loop. Could someone please explain to me the use of に in this sentence:
I will study a lot and pass the test
watashi wa takusan benkyō shite tesuto ni gōkaku shimasu
私はたくさん勉強してテストに合格します。
I chose を instead of に and it was marked incorrect on my test. I'm not really sure why. I'm assuming that に is correct because I should have interpreted the sentence as "I will study a lot to pass the test"?
Thank you very much in advance for any clarification.