write basic infrastructure for createedmactiontests.
createedmaction test written. refactored createedmaction.