first attempt at rack middleware with simple specs