Added database tests