added test for new function