[test] Adding tests for cloning