update README.md with logErrorObject option
update tests to match new `code` version