refactor to improve testability.
renamed for consistency
initial test for materials.
add stubs for future tests.