Use new lambda syntax instead of string lambdas in unittests