core: fix ComamndBaseTest tests.

Fixing CommandbaseTest tests by encapsulating logging in a protected
method in CommandBase and override it in the CommandBaseDummy inside
CommandBaseTest class.

Change-Id: I4fe760414bd3c96ac85e2d8a60b93234149986df
Signed-off-by: Eli Mesika <emesika@redhat.com>