Reset callbacks after test.

Otherwise the state of callback chain is leaked.

\cc @senny