Tests for window security