Added Material tests

I don't have anything for checking what's actually rendered yet but that's okay for now.
Fixed Material bug and expanded tests to cover it