Quaternion test

Partial fix #64.