Improve the tests for screen brightness changes.