Added materials and segment test.