Added new test for #249.