fixes list test & removes test json file after tests are finished