refactored disable button test