A little bit of DRY and add some tests for objectGetPrototypeOf