Replace lambdas in specs with expect