more tests and optim in travis ci config