fixed test method not being called with classinstance.