add makefile to run unit tests easily
split files
fix escapeAsJsonString() to escape double quotes