Add exception handle for google test framework