REVIEW-4351: remove redundant imports
REVIEW-4351: use expect() instead of allowAll()
polishing
REVIEW-4271: replace various metadata allow/expect methods with getModuleMetaData()