quick and dirty solution for testing class methods