Refactored slider disable test.

Change-Id: I800c66399f32ca671d41425b11bd059def1fa9c9