Fix createValueStream and createKeyStream
Add tests for createKeySteam and createValue stream