unit tests for serial_map