Add custom struct test