Added staff app relation service.
Refined test cases.