Fixed functional tests
 * The payloadType member does not exist anymore, only payloadTypes is
   present. Hence, take the first one for functional test as there is
   just one in the session anyway.