fixed correct default controller for tests
added two test cases for loader class.