unit test set service states