Make tests pass and remove memcache dependency for travis