#JC-1605 Added tests and docs.