Writing tests with npm. closes #19