Adding new rest methods to get pending posts from a Peer plus unit
tests.