When software systems grow large, the need for testing becomes more and more apparent the bigger the system becomes. These systems usually require data to be tested with. The acquisition of this data can be very time-consuming and thus, expensive. This is especially true if the data needs to be reacquired or otherwise changed every so often. This thesis will look at context-free grammars as a tool to generate the data required for testing the Swedish Tax Agency’s Population Registry with the purpose to reduce the time and effort to acquire new data.