fixed issue with ranges and added example.json creation when running tests

Signed-off-by: khalid <mustkre8@gmail.com>