add test for exit(null) in main function