fixed bad testing practice