Finished primary test code (pre-run and debug).