travis config to run unit tests and minor streak counter refactor