Fixed configuration documentation and added tests.