improved memcache and redis tests for hhvm