Adding unittest for structure