Testing for structure