testing both with and without range inputs