Update leak test for travis-ci