Fixing user stats unit tests

For some reason this unit test failed when I ran all unit tests before merging our sprint changes to dev. I mocked memcached and force one method to return an integer. @wladekb @themech @kamilkoterba tell me what you think about it, please. Maybe we should exclude this test from our unit tests group instead of fixing it like that...