Fixed NPE where module manager would attempt to render UI before generating domain map.
More robust query tests in TestQueryExecutor.