moved duck typing test