Changed main to exit to the OS with an exit code depending on if tests
fail. Added a test case that will always fail to test it out.