Added test 509 and updated test rig for all 5XX tests
Added offset for distributed data
Configuration of device type and num through ACC_DEVICE_TYPE and ACC_DEVICE_NUM environment variables