still refactoring the tests for ESM API