Fixed compile warnings
Improved stream-command-tests