Improved actiontest

The main improvement is removing `ActionTest.used` which was ugly and side-effecty.
I used Mockito for this, which is a new test-scope dependency, but I think it's worth it, it's a great tool and you'll surely find it useful in the future.
Some other minor improvements to in this test class, in naming, and duplicated string literals.