Added unit tests.
Added Travis configuration.