Testing quaternions