test controller
refactoring bootstrap for unit test