pair: when emptying set to NULL instead of zero
Move parser function to their own compilation unit

Extracted parser tests from test suite's main.c file and added
public "ldn.h" file.
Add equality checking and a stub test case