Fix objectDefineProperty and add further tests