Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
If we use $a=2$ test returns "Composite" for this combination of $k$ and $n$. On the other hand $11$ is 6-th power non-residue so you are right. Maybe, I should add some additional constraints to the claim. Thank you for investigation.