Completed test for #333