added jquery spy for ajax test