Add unit test for class generation and installation.