added tests for material functions
added tests for material functions