Fixed test to compare power.
Had to user Integer.intValue() to make it work.