Test optimisation

Moved test for Sampling params to SetFrameBuffer for efficiency:
enforce sampling=1

Added test for different channel patterns
Variable and tiny datawindows in optimisation test