Fixing unit tests

Fixed unit tests so that they can be run with `npm test`. Also removed the `node_modules` folder from tests.