Service module and tests for AJAX requests