Tests for TPowerAlgorithm