Add function and struct getter/setter test case