Add spec test for issue #666 (convert angles)

Also add similar test spec for length units.