test: Add test for compare() with inherited properties

Increasing code coverage.

Change-Id: I03a65a3087196bdbaa171a86bf2f9d5cc143ab86
test: Clean up test for copy()

Merge the 'copy( Array )' and 'copy( Object )' test suites to
reduce duplication. Differentiate between Array and Object at
the root. For all the nested cases we only need to test them with
array or object, not both. Kept one test to ensure mixed
arrays/objects work.

Change-Id: Ib6c2422590e12c53923428524bcfdff1efde3ff9