How to test that a function receives a unicode parameter