Unit tests and fixture generation script