On characterizations and tests of Benford's law