Fixed tests that failed due to npm refactor