handled combine functions that throw exceptions and added a test against this case