adding log test code.