added wrapper for try-catch
added function with inteded error
moved intended error to foo namespace
merged