Add MacAddrs and HStores to CodecTest
Fix encoding bug in MacAddrs