Add test function with given content
Now can put json content in argument
then test function will parse the given content instead read from testfile