Fix test failure

The unit test program was failing because the static function was
returning the wrong value.