One competence assessed in the Swedish national course tests in mathematics (NCT) is mathematical modelling. This paper presents, with empirical data from the NCT, constraints and conditions for developing mathematical modelling in tests viewed from the Anthropological theory of didactics (ATD). The institutional restrictions are numerous and a reformulation of the test problems is suggested.