Change test to handle sqlite error message (UNIQUE)

I've fixed the unique tests to handle sqlite.