Adds error tests for most status codes
Merge pull request #70 from vladikoff/error-tests

Test clean up