Duplicate key errmsg now varies by server version

also cleanup before test_copy_database

up to date with 2013-12-26

RUBY-676