More Postgres unit tests.
Added Redis tests, fixed inconsistencies with Postgres.