add test for PyCompartmentSpace