tests terrain and grid