removing json file and adding tempfile creation into test script