add test for management command