Add proxy test
Added midleware test