Fix test to properly detect Redis availability
Add MaxPermSize=256m for tests