fixing sonar issues
fixed wrong assert in functional test