Added a couple of tests for the main function