Add tests + fixes for stream conversion operators