Improve test

use ldl argument to set the light data limit to test either h5 or xml heavy data
time test goes forward then backward through time

Change-Id: I0910f3b35fc452c18acfb1257767780570aa4dd7
fix test failures by taking better responsibility over arrays

In some cases (image data extent for example) I am given initialized arrays and shouldn't init or free
them, in others I am given uninitialized arrays and need to do both.

Change-Id: I3f40a3cbef7db27a63e98194c701fbe1f8dc18f1
use shared_ptrs like you mean to man

Change-Id: Iff104f6349d7592d06df1efb7d58493c39b4ae9f