Implements test_{products,logs} functions