Added some tests for SYX files and fixed a bug.