Make test work with or without a table prefix