Fixed tests so that it does not assume node with id 0 exists