Running tests - fixed variable check and makelog()