Don't include src in resolve root for the karma test, as otherwise modules from react sdk get pulled in instead of npm libraries like 'extend' which breaks everything in really subtle ways.
Make sure we throw a sensible error when the body of the data is too short.