Change test to handle sqlite error message (UNIQUE)