Added a generic test function and test cases for most of the generators (directive, filter, various types of services). Also refactored the test for the Controller.