Add more travis tests

Test both with and without optional dependencies.