Added some functional tests for shallow clone.