Add tests for class methods and ivars