Fixed bug in nosetest for removechains.