Adding reset function to logger and modyfying test