2 working tests to show how it goes

dont forget to close streams