update code and tests to reflext private applyContext() transition to public respond()