New test: query of function