Add some tests for window module.