fixing test which some times fails on some travis machines