Added domain tests for retrieval of diagnostics
Added retrieval of diagnostics to operator api