Testing ajax application