Fixed packet_builder; test cases now successfully pass.