tests: Fix an implicit int->double conversion

When comparing doubles in the bson_cursor_get_double test, don't pass
them to a function that expects an int, but compare them as doubles
instead.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>