Add conditional compilation around `connectionTestExpectation` to avoid unused variable warning
Fix inability to complete value transformations when using a nested mapping. closes #1656