Copyright update and test for the function