define pdf form classes; add unit tests.