tests and class