fix tests, core-ajax bugs