Working input peer with tests