added unit tests using node jasmine