Add a test for invalid input in custom node