Add log
Make server use same middleware as tests