Adds the investigation_type column to the raw_data

This depends on #354
Can you add a tests that checks for this exception to be raised?