Fixed a bug in the tests.

Because the redis db wasn't cleared before each test, weird interactions could
occur.