Update tests to handle SPAGeDi formatted distance matrices. Other small
fixes.