Updated quaternion and its test case