Wrap tester code with lambda, accept non-boolean