[TEST] Close input stream in test to not upset windows