Added unit tests for addControllerRoute

I just added some unit tests to cover addControllerRoute.