unit test for Classes