Added simple tests for actions
Added environment-based test
Fixed environment system to support on-creation and at-execution