implemented spell switching test