fix test for database upgrade