fix a bug in functional object test case