Added implementation of seq
Implemented tests for seq, fixed test failure