BufferedInput/OuputStream test