Wood shop is a class that involves creating structures from wood, and that can involve using nails. A nail is a small metal spike that can be used to connect pieces of wood together. To "nail" something can refer to doing exceptionally well in. This person "nailed" their wood shop test meaning that they did well on their test. 
I nailed my wood - shop test .