Fix tests for the npm build.