add test for checking silent exits
default to false to keep the functionality same as before