Improving databases tests