better action response resolver
fix middleware test