Prevent watch test file from being written twice