Add filter query and api method call tests