Added three tests for Cord, fixed a small bug

Fixed a bug in Cord (split was duplicating the tail)

-----------------
Hi Runar (or whoever reads this),
could you please include my small fix of Cord class?

Thanks,
-Vlad