test: be able to calculate precision and recall

Signed-off-by: pntruongan <pntruongan@pnta-laptop.localdomain>