Fixed test for issue #381