add basic test for errorHandler middleware