Design and experimental demonstration of an MgB2 based 1.5 T MRI test magnet