Added 'custom' argument to decorator, Transition tuple and created new tests