added tests for #10
Merge pull request #17 from kparlante/master

Added a test for #10, looks at response codes for different errors