Unit Tests for pulp.ajax

Note: If run on a server, this script will take about 10 seconds to run. Any test will fail if the server takes more than 900ms to respond. If run locally, some tests will not be performed.