Fix warnings in tests
Fix warnings in docs