Add define unit tests.
Fix nil value bugs for define and lambda.