test that classes cannot be instantiated