pass posagi as function argument

I needed this small fix to get the tests to pass on my platform. Not sure how it was working with Travis CI before...