provision/docker/flatten_test.go: moving assert closer to error