The purpose of the proposed textbook is to organize independent work of students in preparation for the state final certification (STA) in mathematics for the course of primary school. The manual contains thematic test tasks in algebra, which cover the entire course of algebra of 7th - 9th grades, as well as mathematics 5th - 6th grades. The tests are concluded in two equivalent versions of 30 tasks in each version. There are answers to all test tasks. All test tasks correspond to the current program in algebra for the basic school course and the requirements for writing the work of the STA in mathematics. The structure of each of the topics is similar to the structure of the tests offered at the external independent assessment (EIA) of knowledge of graduates of secondary schools. Therefore, the manual can be used in preparation for the EIT. Each thematic test of the manual is accompanied by theoretical information, which explains the theory of a topic and offers solutions to typical problems. Also, video tutorials are offered for each of the topics, which can be viewed at the appropriate link in the form of QR-codes.