Fixed PowerOfTwo test