test passed for handle_input