function to test whole json file of tests