added a new method to check the state (true if disabled, false if enabled), added better tests