Add test for an Ajax request
Fix typos suggested by fernandoacorreia for pull request #15