Set For Testing

-adding testing features
-added missing log file checking