this test randomly fails on travis-ci