Test use for cacnonical query function. Effective in debug build only.