ADDED: test for spin chain