test the abort function