Add test for struct as function arg