Test case for setting Koa context