Make a test for streams api