Fix bug in unit test

Should have been cmid not module id when creating module context instance