fixed docs and tests