Fix wsgi interface unit tests

Unit tests for wsgi interface were fixed. Some refactoring was made upon
wsgi controllers unit tests.

Change-Id: Ia40f439fcd59de62ce45d52758ab7b4573f4990f
Merge "Fix wsgi interface unit tests"