test sample for ajax response handling