Some stuff, especially stuff connected to performance or memory usage, is very tricky to write tests for. Doubly so if it is only a problem on certain hardware.
There are lots and lots of ways to write a function that passes a test, I want to know if there is a reason why you chose the approach you used.