Added NewMeshTests.
Some further work on NewMesh, including a couple bug fixes to get NewMeshTests passing.