Added new test cases and clone method.