Fix tests if twod is not configured