add missing tests for powi expansion with size optimizations