Make the application bootstrap more testable