Adds a  method and test script.