Refactor reference C receiver test