added test cases to test against selected digit set and rage