Unit tests for profiling.ajax