Unit test for ScreenDimension
Optimized spirit expression