fixes #5310 updated QueryTest and sample html file