Fixed pattern match on lambda and tests passing again.