Added test for class hierarchy service.