Checks that preview is not used in unit test files.