Writing test file