Fix valve test
[AS7-6334] Added expression rejection testing. Some refactoring to clean up the extension.
Convert threads, jca and ejb3 to use transformer builder.

These were all done as one commit since they all rely on changes in threads