Completed basic functional QueryValidator

unable to check whether synonym exists