start building query endpoint
old and new tests - will rationalise later