added test for is_valid_course