Fix dependencies and type dependencies.
Create test suite runnable on travis.