Initialize accept() inoutparams properly and fix test.

Resolves #840.

Turns out we had a test, it was just passing by accident :/.