lib: improves testing of curl_http

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib: fix precision of test_curl

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>