Added Material api and unit test