Add unit tests for YAML parsing errors

Test for gh-235
Allow @EnableTransactionManagement to be supplied by user