test halfWindowSize argument; fixes #4