Input buffer test

hi @mortenvp  and @jpihl !

Please check on my adds for the input stream modifications and let me know your opinion!

Best regards,
Néstor