Added unit test for structs