tests: improve stats test

Signed-off-by: Richard Marko <rmarko@fedoraproject.org>