fix test using old createSubClass function