(GitHub #2) Fixed test to work on all database types.