fix tests for legacy versions