added simple test (todo) for capturing and returning errors from TSC