tests: move parse_record to the LIB directory