use ajax to send test result