Yes, you're right @nolman, I have same thinking too. I am not sure how to handle the `parser` if it's a `mock('parser').as_null_object` since on test it will be something like that, that's why I fallback to empty uri. I will try your suggestions and let you know the result.