Added AJAX mock test. Relates to #26