Add test for actions
Allow generator based actions
0.5.1