add unit test for empty struct