getlifetime: tests code style fix.
getlifetime: use regex match result on tests.