Some tests for sequences
Some fixes in test