Added assertion ensuring realignment was performed against the reference