Add spec and yard doc coverage for Diagnostic & refactor.