Fix ConditionalOnJndi evaluation

Enable ConditionalOnJndi evaluation and add tests that validate it works
as expected

Fixes gh-1820