some refactoring of tests and initial cut of status service