Hopefully fix some Ajax issues in tests