Adds unit test for translate3d.