Adding parser unittests.

Signed-off-by: Rob Dobson <rob.dobson@citrix.com>