Added unit tests for materials