Ensure ajax completes before test suite