fixed test; simplified getObjectClass()