Adding Stoner-Wolfarth test code