Added test for log function
Partial completion of log function