consolidate input testing into one module