update test to support more units, add tests and travis config