Add custom exception for invalid or missing report definitions

Add custom exception for invalid or missing report definitions
Start WriteReports tests