Minor bugfix: Test was executing close(-1).