Added add_before_value method that adds a new node before the node with the given value. Also added test code to ensure functionality