Adds tests for the Json Parser

Adds phpspec unit testing tool to composer as dev requirement.