Looks to be a configuration issue, not a code issue
Removing logs, fixing result device check, adding null check for subtests, screwing with configuration