better tests for structures