Add test for pull request api and condition for pull request api(private
repo)
Changes in `api/fork.py` ensures that user don't bypass `private repo`
and the tests are added to ensure this behaviour. Few tests are modified
to ensure better test condition.