tests and fix for hasOwnProperty collision