make test_closed pass on windows

Fixes #24