Move alex code for quaternions test