Are the following sentences absolutely identical?

1. Writing a test is hard.

2. To write a test is hard.


For me, the most noticeable difference is that (1) seems a more usual way of saying it.

Students: We have free audio pronunciation exercises.

I had an idea after asking the question.

Can #2 (To write a test is hard) mean "IN ORDER to write the test ..." ?