test encoding/decoding neighbors. add MAC.