Now that 4.0.14 is real, require it.
in case $Query already includes $BaseQuery

here is the old code:

$BaseQuery ||= RT::IR->Query( Queue => $Queue );
$Query     ||= RT::IR->ActiveQuery( Queue => $Queue );

if both $BaseQuery and $Query are empty before, they will be set to
RT::IR->Query(...) and RT::IR->ActiveQuery(...) here, respectively.

but ->ActiveQuery already includes ->Query, so the finaly query will be for
example(combined by BaseQuery AND Query):

( ( Queue = 'Incidents' ) ) AND ( ( Queue = 'Incidents' ) AND Status = 'open' )

so we don't need to set $BaseQuery in this case.

you can reproduce it by accessing "/RTIR/Search/Results.html?Queue=Incidents"
and then clicking the "Edit Search" menu
avoid unnecessary parens when $BaseQuery and $Query are not both set
Add in accidentally skipped files (missed the $ so the .in files were missed)

Also include a new test file.
Merge branch '3.0/search-query-tweak' into 3.0.0-releng
Add in the required ON Transactions clause.