add parse reference + tests.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>