adding unit tests for nil return when parsing objects and an error condition occurs