added unit tests for createLogObject and its edge/corner cases