fix: test middleware