Fix JSON test cases. add fmt test program
Add base64 tests