tests: Add unit tests for num_parse_int()

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