fixing test bugs from travis result