typecheck before setting binName to default
createBins test