removed duplicate function and while loop in test_entry
made bad_path more obvious