tests and fixed doc