graphalign truncation fix + new tests

Not ready for review or merge