add some missing tests and docs