Bug 916917 - uninitialized constant ApplicationState

* Wrong module used to address constant.
* Missing test coverage added