Gplate fix

Testcase for the 3d gplates functionality. I will rebase this on master as soon as #227 is merged.