Added l: scope in test function