Small fixes
Add Middleware Tests (with spec_dart)