update mock
use ../codec
move all the tests