code cleanup
code cleaup
added tests for startcontroller