Refactor: test => file