Few minor commits

Updates travis.yml
adds scope method to factor class
tests for scope and test for __eq__ method