remove unneeded lambdas from tests