unit test for one class