Added tests for clone behaviour.