improve test scripts, generate test coverage
add command info getters

Methods added: `Command#getAction()`, `Command#getCollectionName()`,
`Command#getParam()`