testing exception in lambdas