Modified testcode for stage attempt ID.