Simplified the test code, added more tests for MaterialCard.

12 jobs for material_card in 28 minutes and 52 seconds (queued for 7 seconds)