The problem here is you will see the `toString` output for the passed constructor (which is a function), so you'll probably see something like `{}` in PhantomJS (to be verified)