bats 0.4.0

Update bats to 0.4.0

https://github.com/sstephenson/bats/releases/tag/v0.4.0

Closes #31603.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>