Fixing spec test

Some versions of the JSON parser include a line number in the error message, causing the expected message to fail.

For https://tickets.puppetlabs.com/browse/RAZOR-135