Remove send_test_email query arg after sending

Fix for issue #1704