Fix for #297 only

Cleanup after review
Merge pull request #403 from braimanm/master

Fix for #297 Pending event is missing in TestNg adapter