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.
Merge pull request #60 from akshay-harale/2.2

Code re-factoring and actions function test cases.