use import binary.t from memcached test suites
fix some bugs