State test prevents two from graduating