One test was cancelled and police including members of the riot squad were needed to manage massive crowds at selective school exams across Sydney.