fix the test fun for pull request 873