ticket:9 add management command tests
Merge branch 't9'