Refactored the SAMI testing mixin class