Test for the error code in duplicate database creation