Pull request #159 has uncovered bugs in computations on GPU. New tests were added which the CPU passes and GPU fails.