Test paper generation system