Stubtest helper