Fix a bug in getAlphaStatus and add a unit test