Add tests for Locality management commands