Test: add unit tests, add travis ci icon to README