1)Code refactoring for simple and complex test cases for atom and jsonverbose format.

2)Added test cases for function and actions for jsonverbose format.