Added Json functional tests
Functional test failed message. Clean up test code
Basic issuing api (not completed)