rename gobencode -> serialize, and add more test code