Add a unittest for get_stability method.