Fix test - create directory for tests in advance
Fix sorting order when listing json files