Add test coverage for notify_all()