Added new tests for PullRequestClient

Added new tests for PullRequestClient
Fixed bugs.