fixed tests and docsrings