created a test with sinon mock
added gitignore file
 added new tests and fixed some bugs