added malloc tests, passing structs in func and arrays of struct tests