tests: add nitmetrics test for --detect-covar

Signed-off-by: Jean Privat <jean@pryen.org>