moved file creation for tests to utils