Assert with lambdas