Open YAML report in createReport

Also adds reporter exceptions ReportAlreadyClosed and ReportNotCreated
Add tests for YAML reporter