Tweak ApplicationContext ID

VCAP environemt applied consistently, and more tests.

[Fixes #60750138] [bs-351] Add API for application context id