Documentation and test fixes