use js api in tests
fix travis