add support for --cartridge for tests