Remove mdata dependency from cpp tests