Don't generate too much warning (and also fix a failure in travis tests)
remove warning in test.