Implemented public methods unit tests
Implemented unit test over middleware with a mocked memcache