correct SDM tests for numerical instability