fixed Either Left propagation.
added documentparser tests.