Added some unit testing and travis conf file.