added tests for error cases
Merge pull request #19 from junsumida/404/500

[Check Please] added tests for error cases