test(isWindow): add tests for isWindow