Add a test case for #22.