Add trivial unittest and travis ci.