refactor and add decode_encode_test to pipeline decoder outoput to encoder test
Fix incomplete decocder output for not flushing the temp file
Remove temp files using the iterator pattern
minor naming/style/bug fixes
fix clang error
Merge pull request #264 from jwwang/add_gtests

Add gtests