Initial test for issue #18

Created a sample test that calls afterCompletion on a separate thread.
It breaks when running with version prior to fix for issue #18. 
Interestingly it breaks testWithTxRequired even after the fix. Need to
have a closer look.