started refactroing the tests to allow multiple ESMs and test the ESM api rather than psqlesm