unit tests for classes