added tests for the management command