ticket:9 add test for command; add command printmodels;
Merge branch 't9_commands'