test to check remembering of screen mode