Testing SM Functions