Unit test with struct