Investigating the effect of a magnetic field on beta decay