Fixed small bug in quaternion test