Adds working parseResourceActions with unit tests.