Use @vvo way for converting to string in #20
Fix redis input and output close
Improve integration tests
More improvement on redis end