Add unit tests and update Travis conf file