Testing the weak equivalence principle