Added tests for undefined and non-list pull requests