tests/functional: fixed wrong error message

v2:
- fixed indention error

Signed-off-by: Kai Zhang <kyle@zelin.io>
Signed-off-by: Liu Yuan <namei.unix@gmail.com>