Support for handleScreenLayoutChange unit testing

Thanks for this. It looks nice. I will use it in the future.