Fixed the window coverage, added more tests.
wip
formatting