Shifted test_submit.php logic into responder.php, fixed types to work correctly