more regression tests.

- reorganized api tests to print out passed or failed results.
more validations for json api regression testing
more api validations and error handling.

- reorganized json format for fund allocation command