Updated tests
Added check for invoke method on Function.prototype. Fixes #17