status API with unit testing