Refactored the project to include a menu.
Now each test is run in its own local function, which should also help
avoiding the OutOfMemoryError due to the fact that the variables are
restricted to a local context, and outside that context, they aren't
available.