adding tests and docs for capitalize