[#1735] Add tests and documentation