failing tests for #593
adding hasOwnProperty check for #593