Added test for swap_segments(uint32_t,uint32_t)