Test for detecting types of assigned lambdas.