function added

I have added a test function