Added magnitude test