Add test and docs.