test cleanup,fixed mocks,jshints etc, added .travis.yml