fixed bug in ``_separate_sq``; improved coverage