Create tmp file for test using ClassRule