Added some more tests

Add tests for clone methods, fixed whitespace issues.
I guess this is the last PR for now.