Add/adjust tests for new commit and report methods

Change-Id: I49ac9574958f4870b04dedd91580c15825c6dd36
Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
diff --git a/logging_test.cpp b/logging_test.cpp
index 2325444..0ad10b7 100644
--- a/logging_test.cpp
+++ b/logging_test.cpp
@@ -18,7 +18,7 @@
 -h, --help                      Display this usage text.     \n\
 -c, --commit <string>           Commit desired error.      \n\n\
 Valid errors to commit:                                      \n\
-AutoTestSimple\n";
+AutoTestSimple, AutoTestCreateAndCommit\n";
 
 // validate the journal metadata equals the input value
 int validate_journal(const char *i_entry, const char *i_value)
@@ -222,6 +222,13 @@
             commit(e.name());
         }
     }
+    else if (strcmp(text, "AutoTestCreateAndCommit") == 0)
+    {
+        report<example::xyz::openbmc_project::Example::Elog::
+            AutoTestSimple>(
+                example::xyz::openbmc_project::Example::Elog::
+                    AutoTestSimple::STRING("FOO"));
+    }
 
     return;
 }
@@ -248,7 +255,6 @@
             case 'c':
                 commitError(optarg);
                 return 0;
-
             case 'h':
             case '?':
                 std::cerr << usage;