Tests for new representation. Fixes #22.