Test for duplicate entries after a DB update

Note: these tests are currently failing. Trying to figure it out.