Adding function unit tests. Changing test script to take input file to b...

...e in line with class requirements. Adding .cpsl extension.