Add some tests.
Fix some validations.
Fix travis settings.