added the test case for the lightning primitive.