added unit tests for log and time functions