fix ajax when no tests are found