Gravitational wave ringdown as a probe to test general relativity