prepare for testing double duty lambda function