fix tests in compat mode