finish test file