add more tests + middleware
1.1.0