Testing Einstein's theory of relativity near a black hole