Simplify TestBufferOverrun test cases (casts, pointer addition, calculation)