refactoring; test for creating scratch