tests: cpp: removed unused code
tests: cpp: simplified range tests