Cts tests

Added a lot of test
Fix #7 
Fix #8 
Fix #10