peer application with tests
some test fixes