Add unit test for hasActiveSubclass when only one subclass