Fix for #297 Pending event is missing in TestNg adapter