fixed tests and documentation