swagger middleware testing