fixing test in shim/object keys method for non-object