Introduced unittests for management commands