reach full coverage, add tests for ming options and fix ming options