Basic modelling code with test infrastructure