refactoring the tests towards a ESM aPI