unit tests for abbyy factory