db.gen.* tests removed, tests rewritten to run on non-empty db