Tests for creating a pull request

Refactoring the command so things are more centeralized and generic