#22255 Added tests and fixed up the documentation