Test ifexists and ifnotexists.

Only tested with create and drop, not createindex or dropindex.