add unit test for managment command