You can tell if you're low in magnesium by taking a hot bath with two cups of Epsom Salts (magnesium sulfate.) If you feel a lot better the next morning then you know you were low in magnesium.
It's a quick test, it can't hurt, and you will probably feel fantastic really fast.