Fix tests, by fixing some issues with auto-prefixing table names