serviceMgrApplication IntegrationTest Done, a bit refactoring of applicatio code