added test for localPosition and globalPosition