added test and documentation, closes #106 (was not a bug)