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

add basic test for errorHandler middleware
pin dev deps to semver compatible versions, update methods