Added tests for #112.