I created a custom action called test. That went absolutely fine I believe. However, adding a value of test to the data-do-when attribute causes a SyntaxError in JavaScript. According to the error only certain methods are allowed (such as blank, click, hide, show, etc). This effectively makes it difficult to come up with custom methods and use them in your code.