tests: add compatibility layer