added peer manager tests