if the container passed to CHECK_RANGE_EQUAL is larger than the expected range, the copy writes over the the boundaries of the created buffer _actual.
This adds a new macro for the unit-tests which checks a range of values on the device against an array of values on the host. This simplifies writing tests and removes the need to explicitly copy values back to the host for verification.