add tests for module actions.

@alexmuller
@abersager