add basic test for errorHandler middleware
Merge pull request #950 from lo1tuma/add-basic-test-for-errorHandler

add basic test for errorHandler middleware