tests for Class class