write tests for passing adapting actions with blocks