refactoring specs
fixed bug when removing the only node in a list