Testing the purity of a substance by finding the melting point