Added a test case for #5.