added tests for lambda