testing for a class