Add a test for clearing stale lights

This actually uncovered a bug in the Redis implementation. So I fixed
that.