Additional tests to test singleton/prototype scopes for both stateless/stateful sessions
code change to fix a wrong conditional check