datatest with lambda (cast to function pointer)