Added tests
Fixed bug in \max exposed by tests
Create .travis.yml