add tests and error handling to issue api
add tests for settings api
Merge pull request #282 from reviewninja/tests

Tests