Added a test to transform a path to a json structure