Added test for #46.