[tests] fix build failure on travis