Add unit tests for SCM module