Refactor Lotus::Middleware

Ensure that we clean test fixture temp folder
This avoid spec failed spec with full_stack test