Move TestSystem in its own file.