add CloudML sample test
fix JSON generation