Fix http-invocation test

* Fix call from http-invocation.test.js to account for constructor arguments
Add prototype shared method tests