Added Log usage and initial tests