FutureProvider: how to use it and how to test it.