berkelium-cpp: onClosed, onCrashed, onHang unit tests