Remove unecessary allocation
Add a test for a completely valid struct