Best practices for testing Action code