Adapting tests for smart_display to the new version of this function