function added

I have added a test function
Merge pull request #1 from HaukeHillebrandt/master

function added