Fix query service tests

Tests for query.addLine and query.clear were failing as $rootScope.settings was undefined.