docs and tests
adding tests