Adding a test and docs for #29