max uint values should be 2**n-1

Change-Id: Icb251c99245519449c85465f620fe0e61b95bf95