Add validate library for parsec tests