Fix test state not being passed through the bridge

Test state was not passed through the PhantomJS bridge causing XUnit output to not reflect test failures properly. This patch fixes that.