Add test cases for issue #23.