Testing code should be setup in test cases that are in separate files from the main code. This is a lot easier than you would think and I can show you how.