Fix tests

hi @andreiashu,

I fixed the failing tests and did some cosmetic changes.
No matter what I did I could not make your MemoryCache tests not being skipped.
I'd like to discuss with you, maybe on skype, if you have some time.
Meanwhile could you please check and merge this PR?