Added tests for invalid syntax in query, catching IllegalArgumentException from Tags.parseWithMetric and turning it into a BadRequest.