Add tests

Tests and Travis support.