Add tests for listing commands