[testsuite] Additional tests for fn:count to cover context issues.