added unit test.

Stage#prepare_cloning
Stage#clone