Corrected log values and added tests