testing object with instanceof and isPrototypeOf