add tests for middleware /write-fixtures route
test the middleware