Cleaner way of checking whether the caller is the current test