Merge pull request #759 from sgrenier/next

Terrain test updates
Fix to release resources when terrain test exits.
Merge branch 'next' of https://github.com/blackberry/GamePlay into next