Added test for new function
Added test for new function (closes issue #9)