Covisibility check optimized. Test code changed.