ticket:3 fixed test
ticket:3 added middleware for storing requests