Add test for overriding duck-typing of strings