add snappy and testcase