Added a test for custom materials.