tests with classes