tests: examples: scalar: rewamped to be parameterized

now using GTest parameterized test cases to generate separate test cases
for each number of nodes in range