added some tests for actions.  Also, we no longer set fields on the actions object to functions if they aren't functions...