Removing a line, testing a hook