Add test for bring to foreground mode.