added example of custom action
added tests