Why do you keep calling onDisplayChanged()?  That's an internal method and ISTM it shouldn't be necessary for testing.