what is a good test for magnesium deficiency?

They only have blood tests, and that's not very useful.