add tests to connect Accept and Commit, put ugly stuff in one helper fun...

...c