Add doc and test for module providers