result and provider unit tests