properly handling CurrentOperationContext in WebApi
changed exception type in tests from InvalidOperationException to ErrorResponseException