Move DEBUG flag assignment into actions_test.go
Arrange doc comments