added testGridSearch routine