Add more tests for the window object