Added tester function
Added JSON capability to tester function.