refactor Kv\Redis test for code golf, whitespace fixes