Use correct MAX_LEN constant in agent functional tests

Closes-bug: #1334922

Change-Id: I62bd12da21e778f5cca97d6280c107575d912a81
Merge "Use correct MAX_LEN constant in agent functional tests"