WSOTWO-136: added unit test for Payload Factory class