ENH: added some tests for the realignment business