Improved file version error message and fixed QueryAdvice test harness