1. In the test cases, where more than one attempt is
set, YarnConfiguration.DEFAULT_RM_AM_MAX_ATTEMPTS is used instead of
the hard-coding values.

2. Assert the set maxAttempts > 1 where one and more than one will make
difference.