fix unittest error when snappy compress library is not installed