Fixed json files reading from directories in test-selections.