Tests were added and rewritten because of the redesign of the database management.