Mg test can be done with Red Sea or Salifert test kits. It is accurate in 20ppm. If you give the water to me then I can test it to 2-4ppm accuracy. You dose magnesium with Kent Tech.M (Drsfostersmith.com is alot cheaper) or you can go to http://www.aquatictech.com/">http://www.aquatictech.com/</a> to buy MgCl2 for $12 a lb. If your Mg is low then 1lb is usually the amount you need to dose. 1lb MgCl2 or MgSO4.7H2O (epsom salt) will usually raise Mg 100ppm for 100g water, give or take. I think epsom salt works fine as long as you change your water in the future, but MgCL2 is the better choice, or the Tech.M ionic MgCl2.
I won't trust my corals or anything with MAG Flakes or other chemicals from hardware stores. Marine animals can live with the raise in sulfates, just change your water down the line and keep it up.
Use this to calc what and how much you need to dose on Mg and other things.
[IMG]http://reef.diesyst.com/">http://reef.diesyst.com/</a>