add tests for em/getLayers call