polyfill Object.getPrototypeOf
add more tests