Test and implementation for more complex structures