move unlinkSync to end of test