Add test for file buffer

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>