added testcases for pointers to struct and struct fields