adding test reporter helper function