added unittests to sigproc.fit