Add a test for window.{window, frames, self}.
Merge pull request #1170 from Ms2ger/window-aliases

Add a test for window.{window, frames, self}.