Test threshold

SEMMacro and several tests added on the Threshold project.