Added threaded testing with event handler for completion