Updated database tests