add test for '-m' and '-em' options