test before and after time limit