test code modified, logparse return type updated