Add test for completed middleware chain

Signed-off-by: Ian Macalinao <me@ian.pw>