updated tests to not break when npm cannot parse json