refactor creators and mock methods to common class