Fix abort test taking too long to execute

Fix the aforementioned problem, avoiding builds stuck for more than 10 min in Travis.