Remove implicit global declarations in Karma tests

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Fix queryFiltersDirective test reliant on global

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Fix missing dependencies in dateTime directive

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Merge pull request #2201 from opf/fix/remove-js-globals-in-karma-tests